package xmu.crms.config.security;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 请求微信服务器获得的认证信息
 *
 * @author status200
 * @date 2017/12/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MinProgramAuthorization {

    @JsonProperty("openid")
    private String openId;

    @JsonProperty("session_key")
    private String sessionKey;

    @JsonProperty("unionid")
    private String unionId;

    @JsonProperty("errcode")
    private Integer errCode;

    @JsonProperty("errmsg")
    private String errMsg;
}
